package org.summerframework.test;

/**
 * 用户服务
 *
 * @author sumou
 * @date 2025/02/19
 */
public class UserService {

    private UserDAO userDAO;

    public UserService() {
        System.out.println("UserService无参构造");
    }

    public void setUserDao(UserDAO userDAO) {
        System.out.println("依赖注入userDAO");
        this.userDAO = userDAO;
    }

    public void insertUser() {
        this.userDAO.insert();
    }

}
